SRC =  
SRC += obugid_mpr26.cpp


ifndef TGT
TGT:=obugid_mpr26
endif
ifndef SAVARI_CC
SAVARI_CC=g++
endif
ifndef SAVARI_LD
SAVARI_LD=g++
endif
ifndef CFLAGS
CFLAGS:=
endif
ifndef LDFLAGS
LDFLAGS:=
endif
ifndef INCLUDES
INCLUDES:=
endif
ifndef STRIP
STRIP:=strip
endif
ifndef LIBS
LIBS = 
endif

override CFLAGS  += -g
override LDFLAGS +=


OBJ = $(patsubst %.cpp, %.o, ${SRC})
LIBS +=

all: $(TGT)

$(TGT): $(OBJ)
	${SAVARI_LD} $(LDFLAGS) $(OBJ) -o $(TGT) $(LIBS)
	$(STRIP) $(TGT)

%.o: %.cpp
	${SAVARI_CC} $(INCLUDES) $(CFLAGS) -c -o $@ $<

clean:
	rm -f $(TGT) $(OBJ) *~
